{% extends "hostmanage/base.html" %}
{% block content %}
<p>机房列表</p>
<table  border="1" >
	<tr>
		<td>机房名称&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>备注&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>添加时间</td>
		<td>操作</td>
		
	</tr>
	{% for idc in idcs %}
		<tr>
			<td>
				<a href="{% url 'hostmanage:idc' idc.id %}">
					{{ idc.name }}
				</a>
			</td>
			<td>{{ idc.remark }}</td>
			<td>{{ idc.date_added|date:'M d, Y H:i' }}</td>
			<td><a href="{% url 'hostmanage:edit_idc' idc.id %}">编辑</a></td>
		</tr>
	{% endfor %}
</table>
	<a href="{% url 'hostmanage:add_idc' %}">添加机房</a>
{% endblock content %}